package com.springcloud_consumer.config;

import org.springframework.boot.autoconfigure.jms.JmsProperties;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * ClassName:ConfingBean
 * Package:com.springcloud_consumer.config
 * Description
 *
 * @Author:@wenxueshi
 * @Create:2023/2/5 - 19:29
 * @Version:v1.0
 */
@Configuration
public class ConfigBean {
    @Bean
    @LoadBalanced//配置负载均衡ribbon
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
